package com.itxh.core.config;

import com.itxh.core.sqlsource.SqlSource;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor
@Data
public class MappedStatement {
    private String statementId;
    private String parameterType;
    private String resultType;
    private String statementType;

    private SqlSource sqlSource;

    public Class getResultTypeClass(){
        try {
            return Class.forName(resultType);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        return null;
    }


}
